package com.eurabia.eggchat.service;

import java.util.List;
import com.github.pagehelper.Page;
import com.eurabia.eggchat.pojo.SysEggchatPost;
import com.eurabia.eggchat.pojo.form.SysEggchatPostForm;
import com.eurabia.eggchat.pojo.query.SysEggchatPostQuery;

/**
 * SysEggchatPostService 
 */
public interface SysEggchatPostService {

    /**
     * 查询 SysEggchatPost
     */
    List<SysEggchatPost> find(final SysEggchatPostQuery query);
    
    /**
     * 分页查询 SysEggchatPost
     */
    Page<SysEggchatPost> findByPage(final SysEggchatPostQuery query);

    /**
     * 通过id得到一个 SysEggchatPost
     */
    SysEggchatPost get(final String id);
    
    /**
     * 新增 SysEggchatPost
     */
    void add(final SysEggchatPostForm form);

    /**
     * 修改 SysEggchatPost
     */
    int update(final SysEggchatPostForm form);
    
    /**
     * 删除一个 SysEggchatPost
     */
    int delete(final String id);
	
	/**
     * 修改是否可用
     */
    int changeEnabled(final String id, final Integer enabled);
}